//package com.rp.api.files;
//
//import com.rp.bo.NewAdminBO;
//import com.rp.news.common.Result;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//@Api(value = "files 文件上次相关接口文档",tags = {"文件操作 api文档"})
//@RequestMapping("/fs")
//public interface FileUploadControllerApi {
//
//
//    @ApiOperation(value = "上次用户头像",notes = "上次用户头像",httpMethod = "POST")
//    @PostMapping("/uploadFace")
//    Result uploadFace(@RequestParam String userId, MultipartFile file) throws Exception;
//
//
//    @ApiOperation(value = "上传多文件",notes = "上传多文件",httpMethod = "POST")
//    @PostMapping("/uploadSomeFiles")
//    Result uploadSomeFiles(@RequestParam String userId, MultipartFile[] files) throws Exception;
//
//
//    /**
//     * 文件上次到mongodb 的gridfs中
//     * @param newAdminBO
//     * @return
//     * @throws Exception
//     */
//    @ApiOperation(value = "上次用户头像",notes = "上次用户头像",httpMethod = "POST")
//    @PostMapping("/uploadToGridFS")
//    Result uploadToGridFS(@RequestBody NewAdminBO newAdminBO) throws Exception;
//
//
//
//    /**
//     * 文件mongodb 的gridfs中读取图片内容
//     */
//    @ApiOperation(value = "上次用户头像",notes = "上次用户头像",httpMethod = "POST")
//    @PostMapping("/readInGridFS")
//    void readInGridFS(@RequestParam String faceId, HttpServletRequest request, HttpServletResponse response) throws Exception;
//
//
//    /**
//     * 从文件mongodb 的gridfs中读取base64图片内容
//     */
//    @ApiOperation(value = "从文件mongodb 的gridfs中读取base64图片内容",notes = "从文件mongodb 的gridfs中读取base64图片内容",httpMethod = "GET")
//    @GetMapping("/readFace64InGridFS")
//    Result readFace64InGridFS(@RequestParam String faceId, HttpServletRequest request, HttpServletResponse response) throws Exception;
//
//}
